From 794220c0163c7063b81178c2f3fd1dfc95fa2dc7 Mon Sep 17 00:00:00 2001 From: tsteven4 Date: Sat, 15 Mar 2014 17:58:55 +0000 Subject: [PATCH] don't use options from a previous filter when the new filter has no options. --- gpsbabel/filter_vecs.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gpsbabel/filter_vecs.cc b/gpsbabel/filter_vecs.cc index fc60503bc..a2709847b 100644 --- a/gpsbabel/filter_vecs.cc +++ b/gpsbabel/filter_vecs.cc @@ -209,6 +209,8 @@ find_filter_vec(char* const vecname, char** opts) } } } + } else { + *opts = NULL; } if (opts && opts[0] && !found) { warning("'%s' is an unknown option to %s.\n", *opts, vec->name); -- 2.30.2